﻿// // ******************************************************************
// //       /\ /|       @file       ITranslateRepository.cs
// //       \ V/        @brief      await29
// //       | "")       @author     Await, 285283010@qq.com
// //       /  |
// //      /  \\        @Modified   2025-02-20 21:02
// //    *(__\_\        @Copyright  Copyright (c) , 2025-02-04 14:02 Await
// // ******************************************************************

using AutomaticSubtitles.Service.DataAccess.Model;

namespace AutomaticSubtitles.Service.Domain.Translate;

public interface ITranslateRepository : IRepository<Auto_Translate, string>
{
    Task<Dictionary<string, string>> RetrieveAllCachedData();

    Task AddDataAsync(List<Auto_Translate> addData);
    Task UpdateDataAsync(List<Auto_Translate> update);

    Task<(string? Id, string? Value)> GetValueAsync(string? languageType, string translatedLanguageType, string untranslatedSegmentValue);

    Task<List<Auto_Subtitle>> GetTranslationRecordAsync(List<Auto_Subtitle> subtitle);
}